package com.cqjtu.eecs.utils;

public enum ResultCode {
    SUCCESS(0,"success"),
    ERROR(-1,"fail"),
    /* 错误 */
    PARAMETER_ERROR(101,"参数错误"),
    SYSTEM_ERROR(102, "系统异常"),
    NOT_FOUND(103, "未找到"),
    ALREADY_EXIST(104, "已存在")
    ;


    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
